package com.zhenyi.xiaohuoche.index;

import java.util.List;

import com.jfinal.plugin.activerecord.SqlPara;
import com.xhc.common.model.XhcAdv;
import com.zhenyi.xhc.core.XHCController;

public class AdvController extends XHCController {

	@Override
	public void list() {
		Integer type = getParaToInt("type", 1);
		SqlPara sqlPara = xhcDb.getSqlPara("Adv", type);
		List<XhcAdv> items = XhcAdv.dao.find(sqlPara);
		renderResult(items);
	}
}
